home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / edit / thesrc20.zip / makefile < prev    next >
Makefile  |  1995-01-26  |  31KB  |  775 lines

  1. #
  2. #########################################################################
  3. #
  4. # makefile for The Hessling Editor (THE)
  5. #
  6. #########################################################################
  7. #
  8. # THE - The Hessling Editor. A text editor similar to VM/CMS xedit.
  9. # Copyright (C) 1991-1995 Mark Hessling
  10. #
  11. # This program is free software; you can redistribute it and/or
  12. # modify it under the terms of the GNU General Public License as
  13. # published by the Free Software Foundation; either version 2 of
  14. # the License, or any later version.
  15. #
  16. # This program is distributed in the hope that it will be useful,
  17. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  19. # General Public License for more details.
  20. #
  21. # You should have received a copy of the GNU General Public License
  22. # along with this program; if not, write to:
  23. #
  24. #    The Free Software Foundation, Inc.
  25. #    675 Mass Ave,
  26. #    Cambridge, MA 02139 USA.
  27. #
  28. #
  29. # If you make modifications to this software that you feel increases
  30. # it usefulness for the rest of the community, please email the
  31. # changes, enhancements, bug fixes as well as any and all ideas to me.
  32. # This software is going to be maintained and enhanced as deemed
  33. # necessary by the community.
  34. #
  35. # Mark Hessling                     email: M.Hessling@gu.edu.au
  36. # 36 David Road                     Phone: +61 7 849 7731
  37. # Holland Park                      Fax:   +61 7 875 5314
  38. # QLD 4121
  39. # Australia
  40. #
  41. #########################################################################
  42. #
  43. # The available features of curses library are different on just about 
  44. # every machine. System V curses has more features that BSD curses, so if
  45. # your system gives you a choice of curses libraries, use the System V one.
  46. # The later the version of your System V operating system, the more features
  47. # are supplied in the curses library and the more features THE can use.
  48. # To help you determine which of the options below should be used, then
  49. # the following will help.
  50. #
  51. # Determine where your curses.h file is located. It is generally in
  52. # /usr/include or /usr/5include. 
  53. # Once you know the location of curses.h, run the following commands:
  54. #
  55. # grep A_COLOR /usr/include/curses.h  (or wherever your curses.h file is)
  56. # If this results in any output, then use the System V R3.2 section.
  57. # next try:
  58. # grep attrset /usr/include/curses.h  (or whereever your curses.h file is)
  59. # If this results in any output, then use the System V R3.1 section.
  60. # If neither of these commands resulut in any output, then I'm affraid you
  61. # will have to use the BSD option.
  62. #
  63. # If when you compile and link THE, you get errors, then you might have to
  64. # come down one version. eg If you used the System V R3.2 section and got
  65. # errors, try using the System V 3.1 section.
  66. #
  67. #########################################################################
  68. #
  69. # THE is REXX-aware under all platforms; DOS, OS/2 and Unix.
  70. # By default, the OS/2 REXX support is enabled when compiling with the
  71. # C Set/2 compiler, as this is the only platform where one is almost
  72. # guaranteed to have REXX support available.
  73. #
  74. # To enable REXX support under Unix you need to do the following:
  75. # - obtain version 0.05d or later of Regina from flipper.pvv.unit.no
  76. #   in /pub/rexx. The file is called regina-?.???.tar.Z where ?.??? is
  77. #   the current version.
  78. #   you can also get Regina from rexx.uwaterloo.ca in /pub/freerexx/regina
  79. # - check the README file to see if your platform is supported.
  80. #   if it isn't, then ignore the rest of these instructions :-(
  81. # - build regina as per its instructions
  82. #   this should result in a rexx executable file and a libregina.a file
  83. # - copy rexxsaa.h from the regina src directory into the THE source
  84. #   directory. Also copy libregina.a from the regina src directory into
  85. #   the THE source directory. You may need to run ranlib again on the
  86. #   libregina.a file)
  87. # - set the REXXLIB variable to "-L. -lregina"
  88. #   you may also need to add "-ll" to the end of the REXXLIB variable
  89. #   This is because Regina (versions 0.07a and later) use lex and yacc
  90. #   as part of the compilation of Regina. On some platforms you need
  91. #   to link the lex/yacc library; libl.a with the rexx executable and 
  92. #   with THE. Check the linking step when compiling Regina to see if
  93. #   "-ll" is included. If it is, then it will be required for THE.
  94. # - set the REXXINC variable to "-DUSE_REGINA"
  95. #
  96. #########################################################################
  97. #$Id: makefile 2.0 1995/01/26 16:31:21 MH Release MH $
  98. #########################################################################
  99.  
  100. VER = 20
  101. PROJ = proj   # this will get replaced by uncommenting a section
  102. MAN  = man    # this will get replaced by uncommenting a section
  103.  
  104. #########################################################################
  105. # Borland C++ 2.0 and above compiler on DOS (with Personal REXX (incomplete))
  106. #########################################################################
  107. #SRC       = c:/the
  108. #PROJ      = the.exe
  109. #OBJ       = obj
  110. #CC        = bcc
  111. #CURSINC   = -Ic:/curses 
  112. #REXXINC   = -DUSE_QUERCUS
  113. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  114. #CFLAGS    = -O -d -K -w-aus -w-par -ml -DPROTO $(INCLUDES)
  115. #LD        = tlink @dos-trc.rsp
  116. #XTRAOBJ   = getopt.obj rxiface.obj
  117. #MAN       = manext.exe
  118. #MANLD     = tlink /c /Td c:\c\lib\c0l+manext+getopt+c:\c\lib\wildargs,manext,,c:\c\lib\cl.lib
  119. #########################################################################
  120. # Borland C++ 2.0 and above compiler on DOS (without Personal REXX)
  121. #########################################################################
  122. #SRC       = c:/the
  123. #PROJ      = the.exe
  124. #OBJ       = obj
  125. #CC        = bcc
  126. #CURSINC   = -Ic:/curses
  127. #REXXINC   = -DNOREXX
  128. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  129. #CFLAGS    = -O -d -K -w-aus -w-par -ml -DPROTO $(INCLUDES)
  130. #LD        = tlink @dos-trcx.rsp
  131. #XTRAOBJ   = getopt.obj
  132. #MAN       = manext.exe
  133. #MANLD     = tlink /c /Td c:\c\lib\c0l+manext+getopt+c:\c\lib\wildargs,manext,,c:\c\lib\cl.lib
  134. #########################################################################
  135. # MSC 6.0ax compiler on DOS
  136. #########################################################################
  137. #SRC       = c:/the
  138. #PROJ      = the.exe
  139. #OBJ       = obj
  140. #CC        = cl
  141. #CURSINC   = -Ic:/curses
  142. #REXXINC   = -DNOREXX
  143. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  144. #CFLAGS    = -O -J -EM -AL -DSTDC_HEADERS -DPROTO $(INCLUDES)
  145. #LD        = link @dos-msc.rsp
  146. #XTRAOBJ   = getopt.obj
  147. #MAN       = manext.exe
  148. #MANLD     = link manext+getopt+c:\c600\lib\setargv,,,c:\c600\lib\Llibce /CO /NOE /NOI /NOD;
  149. #########################################################################
  150. # djgpp compiler on DOS (no REXX)
  151. #########################################################################
  152. #SRC       = c:/the
  153. #PROJ      = the
  154. #OBJ       = o
  155. #CC        = gcc
  156. #CURSINC   = -Ic:/curses
  157. #CURSLIB   = c:/djgpp/curses/curseso.a
  158. #REXXINC   = -DNOREXX
  159. #REXXLIB   =
  160. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  161. #CFLAGS    = -O -D__MSDOS__ -DSTDC_HEADERS -DPROTO $(INCLUDES) -o$*.o
  162. #LD        = $(CC) -o $(PROJ) @dos-go32.rsp -Lc:/djgpp/lib $(CURSLIB) $(REXXLIB)
  163. #XTRAOBJ   =
  164. #MAN       = manext
  165. #MANLD     = $(CC) -o manext manext.o -Lc:/djgpp/lib
  166. #CHMODTHE  = aout2exe $(PROJ)
  167. #CHMODMAN  = aout2exe $(MAN)
  168. #########################################################################
  169. # djgpp compiler on DOS (with Regina 0.07a and above)
  170. #########################################################################
  171. #SRC       = c:/the
  172. #PROJ      = the
  173. #OBJ       = o
  174. #CC        = gcc
  175. #CURSINC   = -Ic:/curses
  176. #CURSLIB   = c:/djgpp/curses/curseso.a
  177. #REXXINC   = -If:/regina-d/src -DUSE_REGINA
  178. #REXXLIB   = -Lf:/regina-d/src -lrexx -lsaa -lrexx
  179. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  180. #CFLAGS    = -O -D__MSDOS__ -DSTDC_HEADERS -DPROTO $(INCLUDES) -o$*.o
  181. #LD        = $(CC) -O -o $(PROJ) @dos-go32.rsp -Lc:/djgpp/lib $(CURSLIB) $(REXXLIB)
  182. #XTRAOBJ   =
  183. #MAN       = manext
  184. #MANLD     = $(CC) -o manext manext.o -Lc:/djgpp/lib
  185. #CHMODTHE  = aout2exe $(PROJ)
  186. #CHMODMAN  = aout2exe $(MAN)
  187. #########################################################################
  188. # MSC 6.0ax compiler on OS/2
  189. #########################################################################
  190. #SRC       = c:/the
  191. #PROJ      = the.exe
  192. #OBJ       = obj
  193. #CC        = cl
  194. #CURSINC   = -Ic:/curses
  195. #REXXINC   = -DNOREXX
  196. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  197. #CFLAGS    = -O -J -EM -AL -D__OS2__ -DSTDC_HEADERS -DPROTO -DUSE_OS2_H $(INCLUDES)
  198. #LD        = link @os2-msc.rsp
  199. #XTRAOBJ   = getopt.obj
  200. #MAN       = manext.exe
  201. #MANLD     = link manext+getopt+c:\c600\os2lib\setargv,,,c:\c600\os2lib\Llibce,msc-man.def /NOE /NOI /NOD;
  202. #########################################################################
  203. # C Set/2 compiler on OS/2
  204. #########################################################################
  205. #SRC       = c:/the
  206. #PROJ      = the.exe
  207. #OBJ       = obj
  208. #CC        = icc
  209. #CURSINC   = -Ic:/curses
  210. #REXXINC   = -DUSE_OS2REXX
  211. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  212. #CFLAGS    = -O -J+ -Sm -Q+ -DSTDC_HEADERS -DPROTO $(INCLUDES) 
  213. #LD        = link386 @os2-ibm.rsp
  214. #XTRAOBJ   = getopt.obj
  215. #MAN       = manext.exe
  216. #MANLD     = link386 manext+getopt+f:\ibmc\lib\setargv,,,,ibm-man.def /NOE /NOI /EXEPACK /ALIGN:4;
  217. #RCTHE     = rc $(SRC)\the.res $(PROJ)
  218. #########################################################################
  219. # emx .09a and above compiler on OS/2
  220. #########################################################################
  221. #SRC       = c:/the
  222. #PROJ      = the
  223. #OBJ       = o
  224. #CC        = gcc
  225. #CURSINC   = -Ic:/curses
  226. #CURSLIB   = -Lf:/emx/curses -lcurso
  227. #REXXINC   = -DUSE_OS2REXX
  228. #REXXLIB   = 
  229. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  230. #CFLAGS    = -O -D__OS2__ -DNOVIO -DSTDC_HEADERS -DPROTO $(INCLUDES) -o$*.o
  231. #LD        = $(CC) -o $(PROJ) $(OBJS) -Lf:/emx/lib -los2 $(CURSLIB) $(REXXLIB) $(SRC)/emx-the.def
  232. #XTRAOBJ   =
  233. #MAN       = manext
  234. #MANLD     = $(CC) -o manext manext.o -Lf:/emx/lib -los2 $(SRC)/emx-man.def
  235. #BINDTHE   = emxbind $(PROJ)
  236. #RCTHE     = rc $(SRC)\the.res $(PROJ)
  237. #BINDMAN   = emxbind $(MAN)
  238. #########################################################################
  239. # Borland C++ Compiler on OS/2
  240. #########################################################################
  241. #SRC       = c:/the
  242. #PROJ      = the.exe
  243. #OBJ       = obj
  244. #CC        = bcc
  245. #CURSINC   = -Ic:/curses
  246. #REXXINC   = -DUSE_OS2REXX
  247. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  248. #CFLAGS    = -O -d -K -w-aus -w-par -D__32BIT__ -DSTDC_HEADERS -DPROTO $(INCLUDES)
  249. #LD        = tlink @os2-bcc.rsp
  250. #XTRAOBJ   = getopt.obj
  251. #MAN       = manext.exe
  252. #MANLD     = tlink manext+getopt+f:\bcos2\lib\setargv,,,,bcc-man.def /NOE /NOI /EXEPACK /ALIGN:4;
  253. #########################################################################
  254. # System V compiler on Sun (no REXX)
  255. #########################################################################
  256. #SRC       = .
  257. #PROJ      = the
  258. #OBJ       = o
  259. #CC        = /usr/5bin/cc
  260. #CURSINC   = 
  261. #CURSLIB   = -lcurses
  262. #REXXINC   = -DNOREXX
  263. #REXXLIB   = 
  264. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  265. #CFLAGS    = -O -DSUN -DSYSVR31 $(INCLUDES)
  266. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  267. #XTRAOBJ   =
  268. #MAN       = manext
  269. #MANLD     = $(CC) -o $(MAN) manext.o
  270. #CHMODTHE  = chmod 755 $(PROJ)
  271. #CHMODMAN  = chmod 755 $(MAN)
  272. #########################################################################
  273. # ANSI C compiler on Sun - acc (with Regina 0.05h or above)
  274. #########################################################################
  275. #SRC       = .
  276. #PROJ      = the
  277. #OBJ       = o
  278. #CC        = acc
  279. #CURSINC   = -I/usr/5include
  280. #CURSLIB   = -L/usr/5lib -lcurses
  281. #REXXINC   = -I. -DUSE_REGINA
  282. #REXXLIB   = -L. -lregina
  283. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  284. #CFLAGS    = -O -DSUN -DSYSVR31 -DPROTO $(INCLUDES)
  285. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB) 
  286. #XTRAOBJ   =
  287. #MAN       = manext
  288. #MANLD     = $(CC) -o $(MAN) manext.o
  289. #CHMODTHE  = chmod 755 $(PROJ)
  290. #CHMODMAN  = chmod 755 $(MAN)
  291. #########################################################################
  292. # ANSI C compiler on Sun - acc (no REXX)
  293. #########################################################################
  294. #SRC       = .
  295. #PROJ      = the
  296. #OBJ       = o
  297. #CC        = acc
  298. #CURSINC   = -I/usr/5include
  299. #CURSLIB   = -L/usr/5lib -lcurses
  300. #REXXINC   = -DNOREXX
  301. #REXXLIB   = 
  302. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  303. #CFLAGS    = -O -DSUN -DSYSVR31 -DPROTO $(INCLUDES)
  304. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB) 
  305. #XTRAOBJ   =
  306. #MAN       = manext
  307. #MANLD     = $(CC) -o $(MAN) manext.o
  308. #CHMODTHE  = chmod 755 $(PROJ)
  309. #CHMODMAN  = chmod 755 $(MAN)
  310. #########################################################################
  311. # gcc compiler on Sun (with Regina 0.05h or above)
  312. #########################################################################
  313. #SRC       = .
  314. #PROJ      = the
  315. #OBJ       = o
  316. #CC        = gcc
  317. #CURSINC   = -I/usr/5include
  318. #CURSLIB   = -L/usr/5lib -lcurses
  319. #REXXINC   = -I. -DUSE_REGINA
  320. #REXXLIB   = -L. -lregina
  321. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  322. #CFLAGS    = -O -DSUN -DSYSVR31 -DPROTO $(INCLUDES)
  323. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  324. #XTRAOBJ   =
  325. #MAN       = manext
  326. #MANLD     = $(CC) -o $(MAN) manext.o
  327. #CHMODTHE  = chmod 755 $(PROJ)
  328. #CHMODMAN  = chmod 755 $(MAN)
  329. #########################################################################
  330. # gcc compiler on Linux using PDCurses (experimental)
  331. #########################################################################
  332. #SRC       = .
  333. #PROJ      = the
  334. #OBJ       = o
  335. #CC        = gcc
  336. #CURSINC   = -I/home/mark/curses -I/home/mark/mytinfo
  337. #CURSLIB   = -L/usr/5lib -lcurses
  338. #REXXINC   = -DNOREXX
  339. #REXXLIB   = /home/mark/mytinfo/libmytinfo.a /home/mark/curses/libpdcurses.a
  340. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  341. #CFLAGS    = -O -DSYSVR32 -DPROTO $(INCLUDES)
  342. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  343. #XTRAOBJ   =
  344. #MAN       = manext
  345. #MANLD     = $(CC) -o $(MAN) manext.o
  346. #CHMODTHE  = chmod 755 $(PROJ)
  347. #CHMODMAN  = chmod 755 $(MAN)
  348. #########################################################################
  349. # gcc compiler using ncurses (no Regina)
  350. #########################################################################
  351. #SRC       = .
  352. #PROJ      = the
  353. #OBJ       = o
  354. #CC        = gcc
  355. #CURSINC   = -I/usr/local/include -DUSE_NCURSES
  356. #CURSLIB   = -L/usr/local/lib -lncurses
  357. #REXXINC   = -DNOREXX
  358. #REXXLIB   = 
  359. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  360. #CFLAGS    = -O -DPROTO $(INCLUDES)
  361. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  362. #XTRAOBJ   =
  363. #MAN       = manext
  364. #MANLD     = $(CC) -o $(MAN) manext.o
  365. #CHMODTHE  = chmod 755 $(PROJ)
  366. #CHMODMAN  = chmod 755 $(MAN)
  367. #########################################################################
  368. # System V compiler on System V R4 systems (no REXX)
  369. #########################################################################
  370. #SRC       = .
  371. #PROJ      = the
  372. #OBJ       = o
  373. #CC        = cc
  374. #CURSINC   = 
  375. #CURSLIB   = -lcurses
  376. #REXXINC   = -DNOREXX
  377. #REXXLIB   = 
  378. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  379. #CFLAGS    = -O -DSYSVR4 -DPROTO $(INCLUDES)
  380. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  381. #XTRAOBJ   =
  382. #MAN       = manext
  383. #MANLD     = $(CC) -o $(MAN) manext.o
  384. #CHMODTHE  = chmod 755 $(PROJ)
  385. #CHMODMAN  = chmod 755 $(MAN)
  386. #########################################################################
  387. # System V compiler on System V R3.2 systems (no REXX)
  388. #########################################################################
  389. #SRC       = .
  390. #PROJ      = the
  391. #OBJ       = o
  392. #CC        = cc
  393. #CURSINC   = 
  394. #CURSLIB   = -lcurses
  395. #REXXINC   = -DNOREXX
  396. #REXXLIB   = 
  397. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  398. #CFLAGS    = -O -DSYSVR32 $(INCLUDES)
  399. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  400. #XTRAOBJ   =
  401. #MAN       = manext
  402. #MANLD     = $(CC) -o $(MAN) manext.o
  403. #CHMODTHE  = chmod 755 $(PROJ)
  404. #CHMODMAN  = chmod 755 $(MAN)
  405. #########################################################################
  406. # System V compiler on System V R3.1 systems (no REXX)
  407. #########################################################################
  408. #SRC       = .
  409. #PROJ      = the
  410. #OBJ       = o
  411. #CC        = cc
  412. #CURSINC   = 
  413. #CURSLIB   = -lcurses
  414. #REXXINC   = -DNOREXX
  415. #REXXLIB   = 
  416. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  417. #CFLAGS    = -O -DSYSVR31 $(INCLUDES)
  418. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  419. #XTRAOBJ   =
  420. #MAN       = manext
  421. #MANLD     = $(CC) -o $(MAN) manext.o
  422. #CHMODTHE  = chmod 755 $(PROJ)
  423. #CHMODMAN  = chmod 755 $(MAN)
  424. #########################################################################
  425. # System V compiler on System V R3 systems (no REXX)
  426. #########################################################################
  427. #SRC       = .
  428. #PROJ      = the
  429. #OBJ       = o
  430. #CC        = cc
  431. #CURSINC   = 
  432. #CURSLIB   = -lcurses
  433. #REXXINC   = -DNOREXX
  434. #REXXLIB   = 
  435. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  436. #CFLAGS    = -O -DSYSVR3 $(INCLUDES) 
  437. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  438. #XTRAOBJ   =
  439. #MAN       = manext
  440. #MANLD     = $(CC) -o $(MAN) manext.o
  441. #CHMODTHE  = chmod 755 $(PROJ)
  442. #CHMODMAN  = chmod 755 $(MAN)
  443. #########################################################################
  444. # System V compiler on System V systems eg AIX, HP-UX, Ultrix (Unusable ?)
  445. #########################################################################
  446. #SRC       = .
  447. #PROJ      = the
  448. #OBJ       = o
  449. #CC        = cc
  450. #CURSINC   = 
  451. #CURSLIB   = -lcurses
  452. #REXXINC   = -DNOREXX
  453. #REXXLIB   = 
  454. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  455. #CFLAGS    = -O -DSYSV $(INCLUDES)
  456. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  457. #XTRAOBJ   =
  458. #MAN       = manext
  459. #MANLD     = $(CC) -o $(MAN) manext.o
  460. #CHMODTHE  = chmod 755 $(PROJ)
  461. #CHMODMAN  = chmod 755 $(MAN)
  462. #########################################################################
  463. # c89 compiler on System V systems eg AIX, HP-UX, Ultrix (no REXX)
  464. #########################################################################
  465. #SRC       = .
  466. #PROJ      = the
  467. #OBJ       = o
  468. #CC        = c89
  469. #CURSINC   = 
  470. #CURSLIB   = -lcurses
  471. #REXXINC   = -DNOREXX
  472. #REXXLIB   = 
  473. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  474. #CFLAGS    = -O -DSYSV -DPROTO -D_XOPEN_SOURCE $(INCLUDES)
  475. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  476. #XTRAOBJ   =
  477. #MAN       = manext
  478. #MANLD     = $(CC) -o $(MAN) manext.o
  479. #CHMODTHE  = chmod 755 $(PROJ)
  480. #CHMODMAN  = chmod 755 $(MAN)
  481. #########################################################################
  482. # c89 compiler on HP/UX (with Regina 0.06a and above)
  483. #########################################################################
  484. #SRC       = .
  485. #PROJ      = the
  486. #OBJ       = o
  487. #CC        = c89
  488. #CURSINC   = 
  489. #CURSLIB   = -lcurses
  490. #REXXINC   = -DUSE_REGINA
  491. #REXXLIB   = -L. -lregina -ll -ldld
  492. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  493. #CFLAGS    = -O -DSYSV -DPROTO -D_XOPEN_SOURCE $(INCLUDES)
  494. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  495. #XTRAOBJ   =
  496. #MAN       = manext
  497. #MANLD     = $(CC) -o $(MAN) manext.o
  498. #CHMODTHE  = chmod 755 $(PROJ)
  499. #CHMODMAN  = chmod 755 $(MAN)
  500. #########################################################################
  501. # c89 compiler on AIX - standard curses (with Regina 0.06a and above)
  502. #########################################################################
  503. #SRC       = .
  504. #PROJ      = the
  505. #OBJ       = o
  506. #CC        = c89
  507. #CURSINC   = 
  508. #CURSLIB   = -lcurses
  509. #REXXINC   = -DUSE_REGINA -I../regina/src
  510. #REXXLIB   = -L../regina/src -lregina -ll
  511. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  512. #CFLAGS    = -O -DSYSV -DPROTO -D_XOPEN_SOURCE $(INCLUDES)
  513. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  514. #XTRAOBJ   =
  515. #MAN       = manext
  516. #MANLD     = $(CC) -o $(MAN) manext.o
  517. #CHMODTHE  = chmod 755 $(PROJ)
  518. #CHMODMAN  = chmod 755 $(MAN)
  519. #########################################################################
  520. # c89 compiler on AIX - extended curses (no REXX)
  521. #########################################################################
  522. #SRC       = .
  523. #PROJ      = the
  524. #OBJ       = o
  525. #CC        = c89
  526. #CURSINC   = -DUSE_EXTCURSES
  527. #CURSLIB   = -lcur
  528. #REXXINC   = -DNOREXX
  529. #REXXLIB   = 
  530. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  531. #CFLAGS    = -g -DSYSV -DPROTO -D_XOPEN_SOURCE $(INCLUDES)
  532. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  533. #XTRAOBJ   = extcurs.o
  534. #MAN       = manext
  535. #MANLD     = $(CC) -o $(MAN) manext.o
  536. #CHMODTHE  = chmod 755 $(PROJ)
  537. #CHMODMAN  = chmod 755 $(MAN)
  538. #########################################################################
  539. # c89 compiler on AIX using REXX/6000
  540. #########################################################################
  541. #SRC       = .
  542. #PROJ      = the
  543. #OBJ       = o
  544. #CC        = c89
  545. #CURSINC   = 
  546. #CURSLIB   = -lcurses
  547. #REXXINC   = -DUSE_AIXREXX
  548. #REXXLIB   = -lrexx
  549. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  550. #CFLAGS    = -g -DSYSV -DPROTO -D_XOPEN_SOURCE $(INCLUDES)
  551. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  552. #XTRAOBJ   = 
  553. #MAN       = manext
  554. #MANLD     = $(CC) -o $(MAN) manext.o
  555. #CHMODTHE  = chmod 755 $(PROJ)
  556. #CHMODMAN  = chmod 755 $(MAN)
  557. #########################################################################
  558. # C compiler on BSD or BSDish systems eg. Linux, 386BSD (no REXX)
  559. #########################################################################
  560. #SRC       = .
  561. #PROJ      = the
  562. #OBJ       = o
  563. #CC        = cc
  564. #CURSINC   = 
  565. #CURSLIB   = -lcurses -ltermcap
  566. #REXXINC   = -DNOREXX
  567. #REXXLIB   = 
  568. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  569. #CFLAGS    = -O -DBSD $(INCLUDES)
  570. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  571. #XTRAOBJ   = bsd.o
  572. #MAN       = manext
  573. #MANLD     = $(CC) -o $(MAN) manext.o
  574. #CHMODTHE  = chmod 755 $(PROJ)
  575. #CHMODMAN  = chmod 755 $(MAN)
  576. #########################################################################
  577. # C compiler on BSD or BSDish systems eg. Linux, 386BSD (using Regina)
  578. #########################################################################
  579. #SRC       = .
  580. #PROJ      = the
  581. #OBJ       = o
  582. #CC        = cc
  583. #CURSINC   = 
  584. #CURSLIB   = -lcurses -ltermcap
  585. #REXXINC   = -DUSE_REGINA
  586. #REXXLIB   = -L. -lregina
  587. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  588. #CFLAGS    = -O -DBSD $(INCLUDES)
  589. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  590. #XTRAOBJ   = bsd.o
  591. #MAN       = manext
  592. #MANLD     = $(CC) -o $(MAN) manext.o
  593. #CHMODTHE  = chmod 755 $(PROJ)
  594. #CHMODMAN  = chmod 755 $(MAN)
  595. #########################################################################
  596. # C compiler under ATT System V R3.2 (no REXX)
  597. #########################################################################
  598. #SRC       = .
  599. #PROJ      = the
  600. #OBJ       = o
  601. #CC        = cc
  602. #CURSINC   = 
  603. #CURSLIB   = -lcurses
  604. #REXXINC   = -DNOREXX
  605. #REXXLIB   = 
  606. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  607. #CFLAGS    = -O -DATT -DSYSVR32 -DNO_RENAME $(INCLUDES)
  608. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  609. #XTRAOBJ   = 
  610. #MAN       = manext
  611. #MANLD     = $(CC) -o $(MAN) manext.o
  612. #CHMODTHE  = chmod 755 $(PROJ)
  613. #CHMODMAN  = chmod 755 $(MAN)
  614. #########################################################################
  615. # C compiler under SCO Xenix R2.3 (no REXX)
  616. #########################################################################
  617. #SRC       = .
  618. #PROJ      = the
  619. #OBJ       = o
  620. #CC        = cc
  621. #CURSINC   = 
  622. #CURSLIB   = -lcurses -lx
  623. #REXXINC   = -DNOREXX
  624. #REXXLIB   = 
  625. #INCLUDES  = $(CURSINC) $(REXXINC) -I$(SRC)
  626. #CFLAGS    = -O -DNO_RENAME $(INCLUDES)
  627. #LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
  628. #XTRAOBJ   = 
  629. #MAN       = manext
  630. #MANLD     = $(CC) -o $(MAN) manext.o
  631. #CHMODTHE  = chmod 755 $(PROJ)
  632. #CHMODMAN  = chmod 755 $(MAN)
  633. #########################################################################
  634. #
  635. #
  636. # Object files
  637. #
  638. OBJ1 = box.$(OBJ) colour.$(OBJ) comm1.$(OBJ) comm2.$(OBJ) comm3.$(OBJ) comm4.$(OBJ) comm5.$(OBJ) \
  639.     commset1.$(OBJ) commset2.$(OBJ) commsos.$(OBJ) cursor.$(OBJ) default.$(OBJ) \
  640.     edit.$(OBJ) error.$(OBJ) execute.$(OBJ) linked.$(OBJ) nonansi.$(OBJ) \
  641.      prefix.$(OBJ) reserved.$(OBJ) scroll.$(OBJ) show.$(OBJ) sort.$(OBJ) \
  642.     target.$(OBJ) the.$(OBJ) util.$(OBJ)
  643. OBJ2 = commutil.$(OBJ)
  644. OBJ3 = getch.$(OBJ)
  645. OBJ4 = query.$(OBJ)
  646. OBJ5 = fnmatch.$(OBJ)
  647. OBJ6 = directry.$(OBJ) file.$(OBJ)
  648. OBJ7 = rexx.$(OBJ)
  649. OBJ8 = quercus.$(OBJ) norexx.$(OBJ)
  650. OBJX = $(XTRAOBJ)
  651. OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8) $(OBJX)
  652.  
  653. COMM = $(SRC)/comm1.c $(SRC)/comm2.c $(SRC)/comm3.c $(SRC)/comm4.c $(SRC)/comm5.c \
  654.     $(SRC)/commsos.c $(SRC)/commset1.c $(SRC)/commset2.c $(SRC)/query.c
  655.  
  656. APPENDIX = $(SRC)/appendix.1
  657. GLOSSARY = $(SRC)/glossary
  658.  
  659. #
  660. #########################################################################
  661. $(PROJ):    $(OBJS)
  662.     $(LD)
  663.     $(BINDTHE)
  664.     $(RCTHE)
  665.     $(CHMODTHE)
  666. #########################################################################
  667. %.$(OBJ):$(SRC)/%.c
  668.     $(CC) $(CFLAGS) -c $(SRC)/$*.c
  669. #########################################################################
  670. $(OBJ1):    $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  671. $(OBJ2):    $(SRC)/the.h $(SRC)/command.h $(SRC)/defines.h $(SRC)/proto.h $(SRC)/getch.h $(SRC)/key.h
  672. $(OBJ3):    $(SRC)/getch.h $(SRC)/defines.h $(SRC)/proto.h
  673. $(OBJ4):    $(SRC)/query.h $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
  674. $(OBJ5):    $(SRC)/the.h $(SRC)/fnmatch.h
  675. $(OBJ6):    $(SRC)/the.h $(SRC)/directry.h $(SRC)/defines.h $(SRC)/proto.h
  676. $(OBJ7):    $(SRC)/the.h $(SRC)/rexx.h $(SRC)/proto.h $(SRC)/defines.h $(SRC)/query.h
  677. $(OBJ8):    $(SRC)/the.h $(SRC)/rexx.h $(SRC)/defines.h $(SRC)/rexxfill.h
  678. #
  679. #########################################################################
  680. quickref:    $(MAN) $(COMM) 
  681.     manext -q $(COMM) > the.qrf
  682. #
  683. #########################################################################
  684. manual:    $(MAN) $(SRC)/overview $(COMM) $(APPENDIX) $(GLOSSARY)
  685.     manext $(SRC)/overview $(COMM) $(APPENDIX) $(GLOSSARY) > the.man
  686. #
  687. $(MAN):    $(XTRAOBJ) manext.$(OBJ)
  688.     $(MANLD)
  689.     $(CHMODMAN)
  690. #########################################################################
  691. zoosrc:
  692.     zoo a thesrc$(VER) COPYING readme.src readme.exc overview appendix.1 glossary the.his
  693.     zoo a thesrc$(VER) box.c bsd.c colour.c comm*.c cursor.c default.c directry.c 
  694.     zoo a thesrc$(VER) edit.c error.c norexx.c scroll.c
  695.     zoo a thesrc$(VER) execute.c extcurs.c file.c fnmatch.c getch.c getopt.c
  696.     zoo a thesrc$(VER) linked.c nonansi.c prefix.c quercus.c query.c reserved.c 
  697.     zoo a thesrc$(VER) rexx.c show.c sort.c target.c the.c trace.c util.c vax.c
  698.     zoo a thesrc$(VER) command.h defines.h directry.h fnmatch.h getch.h
  699.     zoo a thesrc$(VER) key.h query.h proto.h rexxfill.h rexx.h the.h
  700.     zoo a thesrc$(VER) manext.c *.hlp *.rsp *.def makefile files.rcs icons.zip the.res the.rc
  701.     zoo a thesrc$(VER) append.the comm.the uncomm.the total.the match.the rm.the words.the
  702. #########################################################################
  703. zipsrc:
  704.     zip  thesrc$(VER) COPYING readme.src readme.exc overview appendix.1 glossary the.his
  705.     zip  thesrc$(VER) box.c bsd.c colour.c comm*.c cursor.c default.c directry.c 
  706.     zip  thesrc$(VER) edit.c error.c norexx.c scroll.c
  707.     zip  thesrc$(VER) execute.c extcurs.c file.c fnmatch.c getch.c getopt.c
  708.     zip  thesrc$(VER) linked.c nonansi.c prefix.c quercus.c query.c reserved.c
  709.     zip  thesrc$(VER) rexx.c show.c sort.c target.c the.c trace.c util.c vax.c
  710.     zip  thesrc$(VER) command.h defines.h directry.h fnmatch.h getch.h
  711.     zip  thesrc$(VER) key.h query.h proto.h rexxfill.h rexx.h the.h
  712.     zip  thesrc$(VER) manext.c *.hlp *.rsp *.def makefile files.rcs icons.zip the.res the.rc
  713.     zip  thesrc$(VER) append.the comm.the uncomm.the total.the match.the rm.the words.the
  714. #########################################################################
  715. tarsrc:
  716.     tar cvf thesrc$(VER).tar COPYING readme.src readme.exc overview appendix.1 glossary the.his \
  717.     box.c bsd.c colour.c comm*.c cursor.c default.c directry.c edit.c \
  718.     error.c execute.c extcurs.c file.c fnmatch.c getch.c getopt.c \
  719.     linked.c nonansi.c prefix.c quercus.c query.c reserved.c norexx.c \
  720.     rexx.c show.c sort.c target.c the.c trace.c util.c vax.c scroll.c \
  721.     command.h defines.h directry.h fnmatch.h getch.h \
  722.     key.h query.h proto.h rexxfill.h rexx.h the.h \
  723.     manext.c *.hlp *.rsp *.def makefile files.rcs icons.zip the.res the.rc \
  724.     append.the comm.the uncomm.the total.the match.the rm.the words.the
  725.     compress thesrc$(VER).tar
  726. #########################################################################
  727. zoodos:
  728.     +copy d:\tools\the.exe .
  729.     zoo a thedos$(VER).zoo COPYING readme.exc the.exe
  730.     zoo a thedos$(VER).zoo the.man the.his dos.hlp *.the
  731.     +del the.exe
  732. #########################################################################
  733. zipdos:
  734.     +copy d:\tools\the.exe .
  735.     zip  thedos$(VER).zip COPYING readme.exc the.exe
  736.     zip  thedos$(VER).zip the.man the.his dos.hlp *.the
  737.     +del the.exe
  738. #########################################################################
  739. zoogo32:
  740.     +copy c:\the\dos\go32\the.exe
  741.     +copy d:\djgpp\bin\go32.exe
  742.     zoo a thedjg$(VER).zoo COPYING readme.exc the.exe go32.exe
  743.     zoo a thedjg$(VER).zoo the.man the.his dos.hlp *.the
  744.     +del the.exe
  745.     +del go32.exe
  746. #########################################################################
  747. zipgo32:
  748.     +copy c:\the\dos\go32\the.exe
  749.     +copy d:\djgpp\bin\go32.exe
  750.     zip  thedjg$(VER).zip COPYING readme.exc the.exe go32.exe
  751.     zip  thedjg$(VER).zip the.man the.his dos.hlp *.the
  752.     +del the.exe
  753.     +del go32.exe
  754. #########################################################################
  755. zooos2:
  756.     +copy f:\usr\bin\the.exe .
  757.     zoo a theos2$(VER).zoo COPYING readme.exc the.exe
  758.     zoo a theos2$(VER).zoo the.man the.his os2.hlp *.the theos2.ico
  759.     +del the.exe
  760. #########################################################################
  761. zipos2:
  762.     +copy f:\usr\bin\the.exe .
  763.     zip  theos2$(VER).zip COPYING readme.exc the.exe
  764.     zip  theos2$(VER).zip the.man the.his os2.hlp *.the theos2.ico
  765.     +del the.exe
  766. #########################################################################
  767. zipexe:
  768.     +copy f:\usr\bin\the.exe theos2.exe
  769.     +copy d:\tools\the.exe thedos.exe
  770.     zip  theexe$(VER).zip COPYING readme.exc thedos.exe theos2.exe
  771.     zip  theexe$(VER).zip the.man the.his dos.hlp os2.hlp *.the icons.zip
  772.     +del thedos.exe
  773.     +del theos2.exe
  774. #########################################################################
  775.